/**
 * Project: complex.remoting
 * 
 * File Created at 2010-8-19
 * $Id$
 * 
 * Copyright 1999-2100 Alibaba.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Alibaba Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Alibaba.com.
 */
package springremoting.hessian;

import java.net.MalformedURLException;

import com.caucho.hessian.client.HessianProxyFactory;

/**
 * TODO Comment of HessianClient
 * 
 * @author wb_liang.gao
 */
public class HessianClient {

    public static void main(String[] args) {
        try {
            String url = "http://127.0.0.1:8080/hessian/hello";
            HessianProxyFactory factory = new HessianProxyFactory();

            IHessian hessian = (IHessian) factory.create(IHessian.class, url);
            System.out.println(hessian.getA());
            
            
            
            
        } catch (MalformedURLException e) {
          
            e.printStackTrace();
        }
    }

}
